﻿using System;
using nRoute.Components.Composition;

namespace nRoute.Mapping
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
    public class MapNavigationContentAttribute
		 : MapNavigationBaseAttribute
    {
        public MapNavigationContentAttribute(string url)
		 : base(url) { }

#region Overrides

        protected internal override IResourceLocator GetResourceLocator(Type targetType, ITypeBuilder typeBuilder)
        {
            return new DefaultNavigationContentLocator(this.Url, targetType);
        }

#endregion

    }
}
